package com.countryside.service;

import com.countryside.pojo.Company;
import com.countryside.pojo.CompanyWork;
import com.countryside.pojo.query.CompanyWorkQuery;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface CompanyWorkService {
    PageInfo<CompanyWork> listCompanyWorkBySearch(CompanyWorkQuery companyWorkQuery);
    int updateState(String id, int state);
    int deleteCompanyWork(String id);
    PageInfo<CompanyWork> listCompanyWork(CompanyWorkQuery companyWorkQuery);
    List<CompanyWork> queryWorkByCompanyId(int id);
    List<CompanyWork> queryWorkByAddress(String address);
    Company queryCompanyByUserId(String userId);
    int companyWorkPublish(CompanyWork companyWork);
    CompanyWork queryCompanyByCompanyId(String id);
}
